<#assign pageName="修改参数信息">
<@override name="page-content">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>${pageName}</legend>
    </fieldset>
    <form class="layui-form padding-10" lay-filter="formParamsAdd">
        <@ctrl.SingleSelect path="params.paramType" options={"0":"平台参数", "1":"全局参数"} 
            text="1" value="0" labelText="参数类型" required="required"/>
        <@ctrl.TreeSelect path="params.guid" dataList=guidsList![] fieldText="sysModuleName" 
            fieldValue="guid" labelText="所属平台" fieldParentID="upperGuid" 
            parentidValue="${(guids.upperGuid)!'-1'}" required="required">
        </@ctrl.TreeSelect>
        <@ctrl.Textbox path="params.paramName" labelText="参数名称" required="required"/>
        <@ctrl.Textbox path="params.paramValue" labelText="参数内容" required="required"/>
        <@ctrl.Textarea path="params.paramDetail" labelText="备注说明" />
        <@ctrl.Hidden path="params.paramId" />
        <@ctrl.FormAction backURL= "../management?gid=${params.guid}"/>
    </form>
</@override>
<@override name="page-scripts">
<script>
     $(function(){
         layui.use(['form','layer', 'jquery'], function(){
             var form = layui.form;
             var layer=layui.layer;
             $=layui.jquery;
             //监听提交
             form.on('submit(submit)', function(data){
                 submitData(data.field, '${contextPath}/admin/params/edit', function(){location.href="${contextPath}/admin/params/management?gid=${params.guid}";});
                 return false;
             });
         })
     })
</script>
</@override>
<@extends name="/layout/basepage.html"/> 